<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>02_namespace模式</title>
</head>
<body>
<script type="text/javascript" src="module1.js"></script>
<script type="text/javascript" src="module2.js"></script>
<script>
  module1.data = [1,2,3,4,5];//会直接修改module1的私有数据 不安全
  module1.test();
  module2.test();
  
</script>
</body>
</html>